package com.google.gwt.indexeddb.client;


/**
 * IndexedDB is an API for client-side storage of significant amounts of 
 * structured data and for high performance searches on this data using 
 * indexes. While DOM Storage is useful for storing smaller amounts of data, 
 * it is less useful for storing larger amounts of structured data. IndexedDB 
 * provides a solution. IndexedDB provides separate APIs for synchronous and 
 * asynchronous access.
 * 
 */
public class IndexedDB extends IDBFactory {
  
  protected IndexedDB() {
  }

  /** 
   * @return an instance of window.indexedDB
   */
  public static final native IndexedDB create() /*-{
    $wnd.indexedDB = $wnd.indexedDB || $wnd.mozIndexedDB || $wnd.webkitIndexedDB;
    $wnd.IDBKeyRange = $wnd.IDBKeyRange || $wnd.webkitIDBKeyRange;
    $wnd.IDBTransaction = $wnd.IDBTransaction || $wnd.webkitIDBTransaction;
    
    return $wnd.indexedDB;
  }-*/;


}
